﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="register.ascx.cs" Inherits="usercontrol_register" %>

<asp:ScriptManager runat="server" ID="sm1" />
<div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span>Đăng ký</div>
        
        	<div class="feat_prod_box_details">
            
            
              	<div class="contact_form">
                <div class="form_subtitle">tạo tài khoản mới</div>
                          
                    
                    
                    <div class="form_row">
                    &nbsp;</div>  
                    <table style="width:100%;">
                <tr>
                    <td colspan="3">
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="True" 
                            ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                
                <tr>
                    <td align="left" valign="top">
                        Tên Đăng Nhập:&nbsp;</td>
                    <td>
                        <asp:UpdatePanel ID="up1" runat="server">
                        <ContentTemplate>
                            <asp:TextBox ID="txtUsername" runat="server" AutoPostBack="True" 
                                ontextchanged="txtUsername_TextChanged" Width="100%"></asp:TextBox>
                                <div runat="server" id="UserAvailability"></div>
                        </ContentTemplate>
                        </asp:UpdatePanel>&nbsp;</td>
                       
                    <td valign="top">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtUsername" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Mật khẩu:</td>
                    <td>
                        <asp:TextBox ID="TextBox2" runat="server" TextMode="Password" Width="100%"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="TextBox2" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Xác nhận mật khẩu:</td>
                    <td>
                        <asp:TextBox ID="TextBox5" runat="server" TextMode="Password" Width="100%"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToCompare="TextBox2" ControlToValidate="TextBox5" 
                            ErrorMessage="Xác nhận mật khẩu không đúng"></asp:CompareValidator>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        Họ &amp; Tên:</td>
                    <td>
                        <asp:TextBox ID="TextBox3" runat="server" Width="100%"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="TextBox3" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Email:</td>
                    <td>
                        <asp:TextBox ID="TextBox4" runat="server" Width="100%"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="TextBox4" ErrorMessage="Email không phù hợp" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        Số điện thoại:</td>
                    <td>
                        <asp:TextBox ID="TextBox6" runat="server" Width="100%"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                            ControlToValidate="TextBox6" ErrorMessage="Số điên thoại không phù hợp" 
                            ValidationExpression="[0]{1}[0-9]{9,10}"></asp:RegularExpressionValidator>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        Địa chỉ:</td>
                    <td>
                        <asp:TextBox ID="TextBox7" runat="server" TextMode="MultiLine" Width="100%"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td align="right">
                    <asp:UpdatePanel ID="up2" runat="server">
                    <ContentTemplate>
                        <asp:Button ID="Button1" runat="server" CssClass="register" 
                            onclick="Button1_Click" Text="Đăng ký" />
                            </ContentTemplate>
                    </asp:UpdatePanel>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
                     
                </div>  
            
          </div>	
            
              

            

            
        <div class="clear">
            
</div>
        </div>